package com.ysd.lis.controller.sys;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.SysInterfaceExtValue;
import com.ysd.lis.service.SysInterfaceExtValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 预置场景-外源字段对照关系 前端控制器
 * </p>
 *
 * @author LiuQi
 * @since 2024-06-07
 */
@RestController
@RequestMapping("/sys/interface/ext/value")
public class SysInterfaceExtValueController extends BaseController {

    @Autowired
    SysInterfaceExtValueService sysInterfaceExtValueService;

    @GetMapping("/getExtValueList")
    public Result getExtValueList() {
        return sysInterfaceExtValueService.getExtValueList();
    }

    @PostMapping("/addExtValue")
    public Result addExtValue(@RequestBody SysInterfaceExtValue sysInterfaceExtValue) {
        return sysInterfaceExtValueService.addExtValue(sysInterfaceExtValue);
    }

    @PostMapping("/updateExtValue")
    public Result updateExtValue(@RequestBody SysInterfaceExtValue sysInterfaceExtValue) {
        return sysInterfaceExtValueService.updateExtValue(sysInterfaceExtValue);
    }
    
    @PostMapping("/deleteExtValue")
    public Result deleteExtValue(@RequestBody SysInterfaceExtValue sysInterfaceExtValue) {
        return sysInterfaceExtValueService.deleteExtValue(sysInterfaceExtValue);
    }
}
